package net.cdsunrise.com.resource.controller;

import net.cdsunrise.com.common.entity.SysUser;
import net.cdsunrise.com.resource.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LiuWei
 * @date: Create in 11:20 2018/05/10
 */
@RestController
@RequestMapping(value = "user")
public class UserController {


    @Autowired
    IUserService userService;

    @GetMapping(value = "get")
    public SysUser get(@RequestParam String userName) {
        return userService.selectUserByUserName(userName);
    }

}
